package com.youlin.service;

import com.youlin.dto.BaseDataResDto;
import com.youlin.dto.BaseResDto;
import com.youlin.dto.Status;
import com.youlin.dto.req.EditUTReqDto;
import com.youlin.dto.req.FindAllTakerReqDto;
import com.youlin.dto.res.TakerLoginResDto;
import com.youlin.dto.res.TakerResDto;
import com.youlin.entities.BygUndertaker;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

public interface BygUndertakerService extends IService<BygUndertaker> {

    BaseDataResDto<TakerLoginResDto> takerLogin(String tel, Integer code);

    BaseResDto<Status, String> sendCode(String tel);

    BaseResDto<Status, String> editUnderTaker(Integer amId, Integer dmId, List<EditUTReqDto> data);

    BaseDataResDto<List<TakerResDto>> findAllUnderTakers(FindAllTakerReqDto data);

    BaseResDto<Status, String> delTaker(Integer data);

}
